package org.example.controller;

import net.itbaima.robot.service.RobotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @ Tool：IntelliJ IDEA
 * @ Author：hl
 * @ Date：2024-05-17-下午9:25
 */
@Component
public class test {
    @Autowired
    RobotService service;
    @Scheduled(cron = "0/5 * * * * *")
    public void scheduled(){
        service.sendMessageToGroup(960899275 ,"QQ机器人，有没有让按照文档弄过啊，有些问题需要请假一下，有偿！！---没人理我就5秒一次");
    }
}
